import { GlobalClass } from "../../../../com/mui/core/GlobalClass";
//class SkillLevelIcon
    
    export  class SkillLevelIcon /* flash.display.Sprite */
    {
        constructor()
        {
            
            this._levelIcon = new Object /* flash.display.Bitmap */();
            addChild(this._levelIcon);
            mouseChildren = false;
            buttonMode = true;
            addEventListener(flash.events.MouseEvent.MOUSE_OVER, this.onMouseOverHandler);
            return;
        }

        public updateIcon(arg1: string): void
        {
            this._levelIcon.bitmapData = GlobalClass.getBitmapData(arg1);
            return;
        }

        /* internal  */onMouseOverHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            addEventListener(flash.events.MouseEvent.MOUSE_OUT, this.onMouseOutHandler);
            --y;
            return;
        }

        /* internal  */onMouseOutHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            removeEventListener(flash.events.MouseEvent.MOUSE_OUT, this.onMouseOutHandler);
            y = y + 1;
            return;
        }

        protected /* var */_levelIcon: Object /* flash.display.Bitmap */;
    }
